package com.byx.chatclient.entity.message;


import androidx.annotation.NonNull;

import com.google.gson.Gson;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Superb
 */
public class AudioMsgBody extends FileMsgBody {
    //语音消息长度,单位：秒。
    private long duration;

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String createContent(){
        return new Gson().toJson(this);
    }

    @NonNull
    @Override
    public String toString() {
        return "[录音]";
    }
}
